namespace inventarioWCF
{
	using System.Collections.Generic;

    /// <summary>
    /// servicioWCF Service Class Handler
    /// </summary>
    public partial class servicioWCF : IservicioWCF
    {
        #region Private Members

        /// <summary>
        /// DataManager private instance for CRUD operations
        /// </summary>
        private DataManager dataManager = new DataManager();

        #endregion

        #region IservicioWCF Member		
		
        #region Color CRUD Operations

        /// <summary>
        /// Create Color. 
        /// </summary>
        /// <param name="color">Target Color.</param>
        /// <returns>return Color Id </returns>
        public string CreateColor(inventarioDAL.Color color)
        {
            return dataManager.CreateEntity(color);
        }

		/// <summary>
        /// Get Colors ID.
        /// </summary>
        /// <returns>Colors ID</returns>
		public string GetColorObjectId(inventarioDAL.Color color)
        {
			return dataManager.GetEntityId<inventarioDAL.Color>(color);
		}
		
        /// <summary>
        /// Read Colors .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Colors.</returns>
        public List<inventarioDAL.Color> ReadColors(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Color>(startIndex, count);
        }
		
		/// <summary>
        /// Read Colors .
        /// </summary>
        /// <returns>List of Colors.</returns>
        public List<inventarioDAL.Color> ReadAllColors()
        {
            return dataManager.ReadEntities<inventarioDAL.Color>();
        }

        /// <summary>
        /// Read Color.
        /// </summary>
        /// <param name="entityId">Color Id that will be read.</param>
        /// <returns>Target Color.</returns>
        public inventarioDAL.Color ReadColor(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Color>(entityId);
        }

        /// <summary>
        /// Update Color.
        /// </summary>
        /// <param name="color">updated Color .</param>
        /// <returns>Updated Color Id .</returns>
        public string UpdateColor(inventarioDAL.Color color)
        {
            return dataManager.UpdateEntity(color);
        }

        /// <summary>
        /// Delete Color.
        /// </summary>
        /// <param name="entityId">Target Color Id.</param>
        /// <returns>Deleted Color Id.</returns>
        public string DeleteColorById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Color>(entityId);
        }
		
		/// <summary>
        /// Delete Color.
        /// </summary>
        /// <param name="entityId">Target Color.</param>
        /// <returns>Deleted Color.</returns>
        public string DeleteColor(inventarioDAL.Color color)
        {
			string entityId = this.GetColorObjectId(color);
			return this.DeleteColorById(entityId);
		}
		
		/// <summary>
        /// Searches the Color.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Color> SearchColor(inventarioDAL.Color searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Color>(searchParameters);
        }
		
        #endregion
		
        #region Gama CRUD Operations

        /// <summary>
        /// Create Gama. 
        /// </summary>
        /// <param name="gama">Target Gama.</param>
        /// <returns>return Gama Id </returns>
        public string CreateGama(inventarioDAL.Gama gama)
        {
            return dataManager.CreateEntity(gama);
        }

		/// <summary>
        /// Get Gamas ID.
        /// </summary>
        /// <returns>Gamas ID</returns>
		public string GetGamaObjectId(inventarioDAL.Gama gama)
        {
			return dataManager.GetEntityId<inventarioDAL.Gama>(gama);
		}
		
        /// <summary>
        /// Read Gamas .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Gamas.</returns>
        public List<inventarioDAL.Gama> ReadGamas(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Gama>(startIndex, count);
        }
		
		/// <summary>
        /// Read Gamas .
        /// </summary>
        /// <returns>List of Gamas.</returns>
        public List<inventarioDAL.Gama> ReadAllGamas()
        {
            return dataManager.ReadEntities<inventarioDAL.Gama>();
        }

        /// <summary>
        /// Read Gama.
        /// </summary>
        /// <param name="entityId">Gama Id that will be read.</param>
        /// <returns>Target Gama.</returns>
        public inventarioDAL.Gama ReadGama(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Gama>(entityId);
        }

        /// <summary>
        /// Update Gama.
        /// </summary>
        /// <param name="gama">updated Gama .</param>
        /// <returns>Updated Gama Id .</returns>
        public string UpdateGama(inventarioDAL.Gama gama)
        {
            return dataManager.UpdateEntity(gama);
        }

        /// <summary>
        /// Delete Gama.
        /// </summary>
        /// <param name="entityId">Target Gama Id.</param>
        /// <returns>Deleted Gama Id.</returns>
        public string DeleteGamaById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Gama>(entityId);
        }
		
		/// <summary>
        /// Delete Gama.
        /// </summary>
        /// <param name="entityId">Target Gama.</param>
        /// <returns>Deleted Gama.</returns>
        public string DeleteGama(inventarioDAL.Gama gama)
        {
			string entityId = this.GetGamaObjectId(gama);
			return this.DeleteGamaById(entityId);
		}
		
		/// <summary>
        /// Searches the Gama.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Gama> SearchGama(inventarioDAL.Gama searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Gama>(searchParameters);
        }
		
        #endregion
		
        #region Linea CRUD Operations

        /// <summary>
        /// Create Linea. 
        /// </summary>
        /// <param name="linea">Target Linea.</param>
        /// <returns>return Linea Id </returns>
        public string CreateLinea(inventarioDAL.Linea linea)
        {
            return dataManager.CreateEntity(linea);
        }

		/// <summary>
        /// Get Lineas ID.
        /// </summary>
        /// <returns>Lineas ID</returns>
		public string GetLineaObjectId(inventarioDAL.Linea linea)
        {
			return dataManager.GetEntityId<inventarioDAL.Linea>(linea);
		}
		
        /// <summary>
        /// Read Lineas .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Lineas.</returns>
        public List<inventarioDAL.Linea> ReadLineas(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Linea>(startIndex, count);
        }
		
		/// <summary>
        /// Read Lineas .
        /// </summary>
        /// <returns>List of Lineas.</returns>
        public List<inventarioDAL.Linea> ReadAllLineas()
        {
            return dataManager.ReadEntities<inventarioDAL.Linea>();
        }

        /// <summary>
        /// Read Linea.
        /// </summary>
        /// <param name="entityId">Linea Id that will be read.</param>
        /// <returns>Target Linea.</returns>
        public inventarioDAL.Linea ReadLinea(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Linea>(entityId);
        }

        /// <summary>
        /// Update Linea.
        /// </summary>
        /// <param name="linea">updated Linea .</param>
        /// <returns>Updated Linea Id .</returns>
        public string UpdateLinea(inventarioDAL.Linea linea)
        {
            return dataManager.UpdateEntity(linea);
        }

        /// <summary>
        /// Delete Linea.
        /// </summary>
        /// <param name="entityId">Target Linea Id.</param>
        /// <returns>Deleted Linea Id.</returns>
        public string DeleteLineaById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Linea>(entityId);
        }
		
		/// <summary>
        /// Delete Linea.
        /// </summary>
        /// <param name="entityId">Target Linea.</param>
        /// <returns>Deleted Linea.</returns>
        public string DeleteLinea(inventarioDAL.Linea linea)
        {
			string entityId = this.GetLineaObjectId(linea);
			return this.DeleteLineaById(entityId);
		}
		
		/// <summary>
        /// Searches the Linea.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Linea> SearchLinea(inventarioDAL.Linea searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Linea>(searchParameters);
        }
		
        #endregion
		
        #region Marca CRUD Operations

        /// <summary>
        /// Create Marca. 
        /// </summary>
        /// <param name="marca">Target Marca.</param>
        /// <returns>return Marca Id </returns>
        public string CreateMarca(inventarioDAL.Marca marca)
        {
            return dataManager.CreateEntity(marca);
        }

		/// <summary>
        /// Get Marcas ID.
        /// </summary>
        /// <returns>Marcas ID</returns>
		public string GetMarcaObjectId(inventarioDAL.Marca marca)
        {
			return dataManager.GetEntityId<inventarioDAL.Marca>(marca);
		}
		
        /// <summary>
        /// Read Marcas .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Marcas.</returns>
        public List<inventarioDAL.Marca> ReadMarcas(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Marca>(startIndex, count);
        }
		
		/// <summary>
        /// Read Marcas .
        /// </summary>
        /// <returns>List of Marcas.</returns>
        public List<inventarioDAL.Marca> ReadAllMarcas()
        {
            return dataManager.ReadEntities<inventarioDAL.Marca>();
        }

        /// <summary>
        /// Read Marca.
        /// </summary>
        /// <param name="entityId">Marca Id that will be read.</param>
        /// <returns>Target Marca.</returns>
        public inventarioDAL.Marca ReadMarca(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Marca>(entityId);
        }

        /// <summary>
        /// Update Marca.
        /// </summary>
        /// <param name="marca">updated Marca .</param>
        /// <returns>Updated Marca Id .</returns>
        public string UpdateMarca(inventarioDAL.Marca marca)
        {
            return dataManager.UpdateEntity(marca);
        }

        /// <summary>
        /// Delete Marca.
        /// </summary>
        /// <param name="entityId">Target Marca Id.</param>
        /// <returns>Deleted Marca Id.</returns>
        public string DeleteMarcaById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Marca>(entityId);
        }
		
		/// <summary>
        /// Delete Marca.
        /// </summary>
        /// <param name="entityId">Target Marca.</param>
        /// <returns>Deleted Marca.</returns>
        public string DeleteMarca(inventarioDAL.Marca marca)
        {
			string entityId = this.GetMarcaObjectId(marca);
			return this.DeleteMarcaById(entityId);
		}
		
		/// <summary>
        /// Searches the Marca.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Marca> SearchMarca(inventarioDAL.Marca searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Marca>(searchParameters);
        }
		
        #endregion
		
        #region Presentacion CRUD Operations

        /// <summary>
        /// Create Presentacion. 
        /// </summary>
        /// <param name="presentacion">Target Presentacion.</param>
        /// <returns>return Presentacion Id </returns>
        public string CreatePresentacion(inventarioDAL.Presentacion presentacion)
        {
            return dataManager.CreateEntity(presentacion);
        }

		/// <summary>
        /// Get Presentacions ID.
        /// </summary>
        /// <returns>Presentacions ID</returns>
		public string GetPresentacionObjectId(inventarioDAL.Presentacion presentacion)
        {
			return dataManager.GetEntityId<inventarioDAL.Presentacion>(presentacion);
		}
		
        /// <summary>
        /// Read Presentacions .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Presentacions.</returns>
        public List<inventarioDAL.Presentacion> ReadPresentacions(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Presentacion>(startIndex, count);
        }
		
		/// <summary>
        /// Read Presentacions .
        /// </summary>
        /// <returns>List of Presentacions.</returns>
        public List<inventarioDAL.Presentacion> ReadAllPresentacions()
        {
            return dataManager.ReadEntities<inventarioDAL.Presentacion>();
        }

        /// <summary>
        /// Read Presentacion.
        /// </summary>
        /// <param name="entityId">Presentacion Id that will be read.</param>
        /// <returns>Target Presentacion.</returns>
        public inventarioDAL.Presentacion ReadPresentacion(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Presentacion>(entityId);
        }

        /// <summary>
        /// Update Presentacion.
        /// </summary>
        /// <param name="presentacion">updated Presentacion .</param>
        /// <returns>Updated Presentacion Id .</returns>
        public string UpdatePresentacion(inventarioDAL.Presentacion presentacion)
        {
            return dataManager.UpdateEntity(presentacion);
        }

        /// <summary>
        /// Delete Presentacion.
        /// </summary>
        /// <param name="entityId">Target Presentacion Id.</param>
        /// <returns>Deleted Presentacion Id.</returns>
        public string DeletePresentacionById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Presentacion>(entityId);
        }
		
		/// <summary>
        /// Delete Presentacion.
        /// </summary>
        /// <param name="entityId">Target Presentacion.</param>
        /// <returns>Deleted Presentacion.</returns>
        public string DeletePresentacion(inventarioDAL.Presentacion presentacion)
        {
			string entityId = this.GetPresentacionObjectId(presentacion);
			return this.DeletePresentacionById(entityId);
		}
		
		/// <summary>
        /// Searches the Presentacion.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Presentacion> SearchPresentacion(inventarioDAL.Presentacion searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Presentacion>(searchParameters);
        }
		
        #endregion
		
        #region Producto CRUD Operations

        /// <summary>
        /// Create Producto. 
        /// </summary>
        /// <param name="producto">Target Producto.</param>
        /// <returns>return Producto Id </returns>
        public string CreateProducto(inventarioDAL.Producto producto)
        {
            return dataManager.CreateEntity(producto);
        }

		/// <summary>
        /// Get Productos ID.
        /// </summary>
        /// <returns>Productos ID</returns>
		public string GetProductoObjectId(inventarioDAL.Producto producto)
        {
			return dataManager.GetEntityId<inventarioDAL.Producto>(producto);
		}
		
        /// <summary>
        /// Read Productos .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Productos.</returns>
        public List<inventarioDAL.Producto> ReadProductos(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Producto>(startIndex, count);
        }
		
		/// <summary>
        /// Read Productos .
        /// </summary>
        /// <returns>List of Productos.</returns>
        public List<inventarioDAL.Producto> ReadAllProductos()
        {
            return dataManager.ReadEntities<inventarioDAL.Producto>();
        }

        /// <summary>
        /// Read Producto.
        /// </summary>
        /// <param name="entityId">Producto Id that will be read.</param>
        /// <returns>Target Producto.</returns>
        public inventarioDAL.Producto ReadProducto(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Producto>(entityId);
        }

        /// <summary>
        /// Update Producto.
        /// </summary>
        /// <param name="producto">updated Producto .</param>
        /// <returns>Updated Producto Id .</returns>
        public string UpdateProducto(inventarioDAL.Producto producto)
        {
            return dataManager.UpdateEntity(producto);
        }

        /// <summary>
        /// Delete Producto.
        /// </summary>
        /// <param name="entityId">Target Producto Id.</param>
        /// <returns>Deleted Producto Id.</returns>
        public string DeleteProductoById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Producto>(entityId);
        }
		
		/// <summary>
        /// Delete Producto.
        /// </summary>
        /// <param name="entityId">Target Producto.</param>
        /// <returns>Deleted Producto.</returns>
        public string DeleteProducto(inventarioDAL.Producto producto)
        {
			string entityId = this.GetProductoObjectId(producto);
			return this.DeleteProductoById(entityId);
		}
		
		/// <summary>
        /// Searches the Producto.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Producto> SearchProducto(inventarioDAL.Producto searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Producto>(searchParameters);
        }
		
        #endregion
		
        #region Proveedor CRUD Operations

        /// <summary>
        /// Create Proveedor. 
        /// </summary>
        /// <param name="proveedor">Target Proveedor.</param>
        /// <returns>return Proveedor Id </returns>
        public string CreateProveedor(inventarioDAL.Proveedor proveedor)
        {
            return dataManager.CreateEntity(proveedor);
        }

		/// <summary>
        /// Get Proveedors ID.
        /// </summary>
        /// <returns>Proveedors ID</returns>
		public string GetProveedorObjectId(inventarioDAL.Proveedor proveedor)
        {
			return dataManager.GetEntityId<inventarioDAL.Proveedor>(proveedor);
		}
		
        /// <summary>
        /// Read Proveedors .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Proveedors.</returns>
        public List<inventarioDAL.Proveedor> ReadProveedors(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Proveedor>(startIndex, count);
        }
		
		/// <summary>
        /// Read Proveedors .
        /// </summary>
        /// <returns>List of Proveedors.</returns>
        public List<inventarioDAL.Proveedor> ReadAllProveedors()
        {
            return dataManager.ReadEntities<inventarioDAL.Proveedor>();
        }

        /// <summary>
        /// Read Proveedor.
        /// </summary>
        /// <param name="entityId">Proveedor Id that will be read.</param>
        /// <returns>Target Proveedor.</returns>
        public inventarioDAL.Proveedor ReadProveedor(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Proveedor>(entityId);
        }

        /// <summary>
        /// Update Proveedor.
        /// </summary>
        /// <param name="proveedor">updated Proveedor .</param>
        /// <returns>Updated Proveedor Id .</returns>
        public string UpdateProveedor(inventarioDAL.Proveedor proveedor)
        {
            return dataManager.UpdateEntity(proveedor);
        }

        /// <summary>
        /// Delete Proveedor.
        /// </summary>
        /// <param name="entityId">Target Proveedor Id.</param>
        /// <returns>Deleted Proveedor Id.</returns>
        public string DeleteProveedorById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Proveedor>(entityId);
        }
		
		/// <summary>
        /// Delete Proveedor.
        /// </summary>
        /// <param name="entityId">Target Proveedor.</param>
        /// <returns>Deleted Proveedor.</returns>
        public string DeleteProveedor(inventarioDAL.Proveedor proveedor)
        {
			string entityId = this.GetProveedorObjectId(proveedor);
			return this.DeleteProveedorById(entityId);
		}
		
		/// <summary>
        /// Searches the Proveedor.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Proveedor> SearchProveedor(inventarioDAL.Proveedor searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Proveedor>(searchParameters);
        }
		
        #endregion
		
        #region Tipo CRUD Operations

        /// <summary>
        /// Create Tipo. 
        /// </summary>
        /// <param name="tipo">Target Tipo.</param>
        /// <returns>return Tipo Id </returns>
        public string CreateTipo(inventarioDAL.Tipo tipo)
        {
            return dataManager.CreateEntity(tipo);
        }

		/// <summary>
        /// Get Tipos ID.
        /// </summary>
        /// <returns>Tipos ID</returns>
		public string GetTipoObjectId(inventarioDAL.Tipo tipo)
        {
			return dataManager.GetEntityId<inventarioDAL.Tipo>(tipo);
		}
		
        /// <summary>
        /// Read Tipos .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Tipos.</returns>
        public List<inventarioDAL.Tipo> ReadTipos(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Tipo>(startIndex, count);
        }
		
		/// <summary>
        /// Read Tipos .
        /// </summary>
        /// <returns>List of Tipos.</returns>
        public List<inventarioDAL.Tipo> ReadAllTipos()
        {
            return dataManager.ReadEntities<inventarioDAL.Tipo>();
        }

        /// <summary>
        /// Read Tipo.
        /// </summary>
        /// <param name="entityId">Tipo Id that will be read.</param>
        /// <returns>Target Tipo.</returns>
        public inventarioDAL.Tipo ReadTipo(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Tipo>(entityId);
        }

        /// <summary>
        /// Update Tipo.
        /// </summary>
        /// <param name="tipo">updated Tipo .</param>
        /// <returns>Updated Tipo Id .</returns>
        public string UpdateTipo(inventarioDAL.Tipo tipo)
        {
            return dataManager.UpdateEntity(tipo);
        }

        /// <summary>
        /// Delete Tipo.
        /// </summary>
        /// <param name="entityId">Target Tipo Id.</param>
        /// <returns>Deleted Tipo Id.</returns>
        public string DeleteTipoById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Tipo>(entityId);
        }
		
		/// <summary>
        /// Delete Tipo.
        /// </summary>
        /// <param name="entityId">Target Tipo.</param>
        /// <returns>Deleted Tipo.</returns>
        public string DeleteTipo(inventarioDAL.Tipo tipo)
        {
			string entityId = this.GetTipoObjectId(tipo);
			return this.DeleteTipoById(entityId);
		}
		
		/// <summary>
        /// Searches the Tipo.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Tipo> SearchTipo(inventarioDAL.Tipo searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Tipo>(searchParameters);
        }
		
        #endregion
		
        #region Unidadmedida CRUD Operations

        /// <summary>
        /// Create Unidadmedida. 
        /// </summary>
        /// <param name="unidadmedida">Target Unidadmedida.</param>
        /// <returns>return Unidadmedida Id </returns>
        public string CreateUnidadmedida(inventarioDAL.Unidadmedida unidadmedida)
        {
            return dataManager.CreateEntity(unidadmedida);
        }

		/// <summary>
        /// Get Unidadmedidas ID.
        /// </summary>
        /// <returns>Unidadmedidas ID</returns>
		public string GetUnidadmedidaObjectId(inventarioDAL.Unidadmedida unidadmedida)
        {
			return dataManager.GetEntityId<inventarioDAL.Unidadmedida>(unidadmedida);
		}
		
        /// <summary>
        /// Read Unidadmedidas .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Unidadmedidas.</returns>
        public List<inventarioDAL.Unidadmedida> ReadUnidadmedidas(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Unidadmedida>(startIndex, count);
        }
		
		/// <summary>
        /// Read Unidadmedidas .
        /// </summary>
        /// <returns>List of Unidadmedidas.</returns>
        public List<inventarioDAL.Unidadmedida> ReadAllUnidadmedidas()
        {
            return dataManager.ReadEntities<inventarioDAL.Unidadmedida>();
        }

        /// <summary>
        /// Read Unidadmedida.
        /// </summary>
        /// <param name="entityId">Unidadmedida Id that will be read.</param>
        /// <returns>Target Unidadmedida.</returns>
        public inventarioDAL.Unidadmedida ReadUnidadmedida(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Unidadmedida>(entityId);
        }

        /// <summary>
        /// Update Unidadmedida.
        /// </summary>
        /// <param name="unidadmedida">updated Unidadmedida .</param>
        /// <returns>Updated Unidadmedida Id .</returns>
        public string UpdateUnidadmedida(inventarioDAL.Unidadmedida unidadmedida)
        {
            return dataManager.UpdateEntity(unidadmedida);
        }

        /// <summary>
        /// Delete Unidadmedida.
        /// </summary>
        /// <param name="entityId">Target Unidadmedida Id.</param>
        /// <returns>Deleted Unidadmedida Id.</returns>
        public string DeleteUnidadmedidaById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Unidadmedida>(entityId);
        }
		
		/// <summary>
        /// Delete Unidadmedida.
        /// </summary>
        /// <param name="entityId">Target Unidadmedida.</param>
        /// <returns>Deleted Unidadmedida.</returns>
        public string DeleteUnidadmedida(inventarioDAL.Unidadmedida unidadmedida)
        {
			string entityId = this.GetUnidadmedidaObjectId(unidadmedida);
			return this.DeleteUnidadmedidaById(entityId);
		}
		
		/// <summary>
        /// Searches the Unidadmedida.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Unidadmedida> SearchUnidadmedida(inventarioDAL.Unidadmedida searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Unidadmedida>(searchParameters);
        }
		
        #endregion
		
        #region Uso CRUD Operations

        /// <summary>
        /// Create Uso. 
        /// </summary>
        /// <param name="uso">Target Uso.</param>
        /// <returns>return Uso Id </returns>
        public string CreateUso(inventarioDAL.Uso uso)
        {
            return dataManager.CreateEntity(uso);
        }

		/// <summary>
        /// Get Usos ID.
        /// </summary>
        /// <returns>Usos ID</returns>
		public string GetUsoObjectId(inventarioDAL.Uso uso)
        {
			return dataManager.GetEntityId<inventarioDAL.Uso>(uso);
		}
		
        /// <summary>
        /// Read Usos .
        /// </summary>
        /// <param name="startIndex">Start Index.</param>
        /// <param name="count">Number of object that will be retreived.</param>
        /// <returns>List of Usos.</returns>
        public List<inventarioDAL.Uso> ReadUsos(int startIndex, int count)
        {
            return dataManager.ReadEntities<inventarioDAL.Uso>(startIndex, count);
        }
		
		/// <summary>
        /// Read Usos .
        /// </summary>
        /// <returns>List of Usos.</returns>
        public List<inventarioDAL.Uso> ReadAllUsos()
        {
            return dataManager.ReadEntities<inventarioDAL.Uso>();
        }

        /// <summary>
        /// Read Uso.
        /// </summary>
        /// <param name="entityId">Uso Id that will be read.</param>
        /// <returns>Target Uso.</returns>
        public inventarioDAL.Uso ReadUso(string entityId)
        {
            return dataManager.ReadEntity<inventarioDAL.Uso>(entityId);
        }

        /// <summary>
        /// Update Uso.
        /// </summary>
        /// <param name="uso">updated Uso .</param>
        /// <returns>Updated Uso Id .</returns>
        public string UpdateUso(inventarioDAL.Uso uso)
        {
            return dataManager.UpdateEntity(uso);
        }

        /// <summary>
        /// Delete Uso.
        /// </summary>
        /// <param name="entityId">Target Uso Id.</param>
        /// <returns>Deleted Uso Id.</returns>
        public string DeleteUsoById(string entityId)
        {
            return dataManager.DeleteEntity<inventarioDAL.Uso>(entityId);
        }
		
		/// <summary>
        /// Delete Uso.
        /// </summary>
        /// <param name="entityId">Target Uso.</param>
        /// <returns>Deleted Uso.</returns>
        public string DeleteUso(inventarioDAL.Uso uso)
        {
			string entityId = this.GetUsoObjectId(uso);
			return this.DeleteUsoById(entityId);
		}
		
		/// <summary>
        /// Searches the Uso.
        /// </summary>
        /// <param name="searchParameters">The search parameters.</param>
        /// <returns></returns>
		public List<inventarioDAL.Uso> SearchUso(inventarioDAL.Uso searchParameters)
        {
            return this.dataManager.SearchEntities<inventarioDAL.Uso>(searchParameters);
        }
		
        #endregion
        #endregion
    }
}